package com.kita.broker.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.kita.common.utils.PageUtils;
import com.kita.common.utils.Query;

import com.kita.broker.dao.HousingDao;
import com.kita.broker.entity.HousingEntity;
import com.kita.broker.service.HousingService;


@Service("housingService")
public class HousingServiceImpl extends ServiceImpl<HousingDao, HousingEntity> implements HousingService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<HousingEntity> page = this.page(
                new Query<HousingEntity>().getPage(params),
                new QueryWrapper<HousingEntity>()
        );

        return new PageUtils(page);
    }

}